package com.gzhryc.shared_device.oem.code.place.dao.db;

import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Join;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;
import com.gzhryc.shared_device.oem.code.user.dao.db.User;

@Table(name="clerk_info")
public class Clerk {
	
	@PrimaryKey
    @Column(name = "user_id",notNull = true, note = "用户ID")
    protected Long userId;

    @PrimaryKey
    @Column(name = "merchant_user_id",notNull = true, note = "商户用户ID")
    protected Long merchantUserId;
    
    @Column(name = "can_cancel_order",notNull = true, defVal = "1", note = "是否撤销订单")
    protected Integer canCancelOrder;

    @Column(length = 128,note = "备注")
    protected String note;

    @Column(name = "last_login_date",note = "登陆时间")
    protected Date lastLoginDate;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;
    
    @Join(fromField = "user_id")
    protected User user;
    
    protected User merchant;
    
    protected Long placeCount;
    
    protected Long funcModelCount;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getMerchantUserId() {
		return merchantUserId;
	}

	public void setMerchantUserId(Long merchantUserId) {
		this.merchantUserId = merchantUserId;
	}

	public Integer getCanCancelOrder() {
		return canCancelOrder;
	}

	public void setCanCancelOrder(Integer canCancelOrder) {
		this.canCancelOrder = canCancelOrder;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getMerchant() {
		return merchant;
	}

	public void setMerchant(User merchant) {
		this.merchant = merchant;
	}

	public Long getPlaceCount() {
		return placeCount;
	}

	public void setPlaceCount(Long placeCount) {
		this.placeCount = placeCount;
	}

	public Long getFuncModelCount() {
		return funcModelCount;
	}

	public void setFuncModelCount(Long funcModelCount) {
		this.funcModelCount = funcModelCount;
	}
}
